#ifndef _LINS_TASK_H
#define _LINS_TASK_H

#include <appConfig.h>
#include <SoftTimerTask.h>
#include "systick_device.h"
#include <taskManager.h>
#include <lin_device.h>
#include <lin_stack.h>

/**
* @brief A structure to represent LIN frame information.
*/
typedef union{
    uint8_t command;
    struct{
        uint8_t  command;
        uint16_t transitionTime;
        uint16_t level;
        uint8_t  red;
        uint8_t  green;
        uint8_t  blue;
    }ColorRGB;
    struct{
        uint8_t  command;
        uint8_t  tableIndex;
        uint16_t sectionTime;
        uint8_t OnOff;
    }Frame;
    uint8_t  data[LIN_BUFF_SIZE];       /*!< data buffer. */
}Color_CMD_Frame_t;



typedef enum{
    COLOR_CMD_XYY = 0x00,
    COLOR_CMD_HSL = 0x01,
    COLOR_CMD_RGB = 0x02,
    COLOR_CMD_PWM = 0x03,
}ColorCommand_t;















#endif